<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015-08-26
 * Time: 20:48
 */
class b2c_ctl_wap_sekura extends b2c_ctl_wap_common{
    function __construct(&$app){
        parent::__construct($app);
        $shopname = app::get('wap')->getConf('wap.name');
        $this->shopname =$shopname;
        if(isset($shopname)){
            $this->title = app::get('b2c')->_('樱淘社').$shopname;
            $this->keywords = app::get('b2c')->_('樱淘社').$shopname;
            $this->description = app::get('b2c')->_('樱淘社').$shopname;
        }
        $this->action = $this->_request->get_act_name();
        if(!$this->action) $this->action = 'index';
        $this->pagedata['res_url'] = $this->app->res_url;
        $this->userObject = kernel::single('b2c_user_object');
        /** end **/
    }

    function index(){
        $input['method'] = array("file"=>"mobileapi_rpc_point","action"=>"point_detail");
        $res = $this->getApi($input);
        $this->pagedata['point'] = $res['data'];
        $this->page('wap/sekura/index.html');
    }
}